<ul id="myTab" class="nav nav-tabs">
    <li class="active">
        <a href="#home" data-toggle="tab">
            编辑资料
        </a>
    </li>
    <li><a href="#real" data-toggle="tab">认证资料</a></li>
</ul>
<div id="myTabContent" class="tab-content">

    <div class="tab-pane fade in active" id="home">
        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('edit')}" style="margin-top: 20px;">
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <input style="display: none;" name="ids" value="{$row.uid}">
                <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label><!--姓名-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-username" data-rule="required" class="form-control form-control" name="row[username]" type="text" value="{$row.username}" readonly>
                    <input id="c_ids" data-rule="required" class="form-control form-control" name="ids" type="text" value="{$row.uid}" style="display: none">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Tao_bao_no')}:</label><!--淘宝账号-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-tao_bao_no" data-rule="required" class="form-control form-control" name="row[tao_bao_no]" type="text" value="{$row.tao_bao_no}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                     <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Card_no')}:</label><!--身份证号-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-card_no"  class="form-control form-control" name="row[card_no]" type="text" value="{$row.user_attribute.card_no}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                     <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label><!--手机号-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-mobile" data-rule="required" class="form-control form-control" name="row[mobile]" type="text" value="{$row.mobile}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Bank_name')}:</label><!--银行名称-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-bank_name" data-rule="required" class="form-control  form-control"  name="row[bank_name]" value="{$row.user_attribute.bank_name}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Bank_no')}:</label><!--银行卡号-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-Bank_no" data-rule="required" class="form-control form-control"  name="row[bank_no]" value="{$row.user_attribute.bank_no}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Qq')}:</label><!--Qq号-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-Qq"  class="form-control form-control" name="row[qq]" type="number" value="{$row.qq}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Task_count')}:</label><!--单数/天-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-task_count" data-rule="required" class="form-control  form-control"  data-use-current="true" name="row[task_count]" type="text" value="{$row.user_attribute.task_count}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Month_task_count')}:</label><!--单数/月-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-month_task_count" data-rule="required" class="form-control form-control" name="row[month_task_count]" type="text" value="{$row.user_attribute.month_task_count}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Task_day_count')}:</label><!--间隔天数-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-task_day_count" data-rule="required" class="form-control form-control" name="row[task_day_count]" type="text" value="{$row.user_attribute.task_day_count}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Task_limit_cash')}:</label><!--金额限制-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-task_limit_cash" data-rule="required" class="form-control form-control" name="row[task_limit_cash]" type="text" value="{$row.user_attribute.task_limit_cash}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Person_count')}:</label><!--可招组员-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c-person_count" data-rule="required" class="form-control form-control" name="row[person_count]" type="text" value="{$row.user_attribute.person_count}">
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label><!--备注-->
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-remarks"   class="form-control  form-control" rows="5" name="row[remarks]" cols="50" >{$row.user_attribute.remarks}</textarea>
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Referrer_id')}:</label><!--推荐人-->
                <div class="col-xs-12 col-sm-8">
                    <input id="c_referrer_id" data-rule="required" class="form-control form-control" name="row[referrer_id]" type="text" value="{$row.referrer_id}" disabled>
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label><!--收货地址-->
                <div class="col-xs-12 col-sm-8">
                    <textarea  id="c-address" class="form-control  form-control" rows="5" name="row[address]" cols="50">{$row.user_attribute.address}</textarea>
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Room')}:</label><!--房间-->
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-room" data-rule="required" class="form-control selectpicker" name="row[room]">
                        <option value="1" {if $row.user_attribute.room ==1 } selected {/if}>1</option>
                        <option value="2" {if $row.user_attribute.room ==2 } selected {/if} >2</option>
                    </select>

                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Healthy')}:</label><!--健康评级-->
                <div class="col-xs-12 col-sm-8">
                    <select  id="c-healthy" data-rule="required" class="form-control selectpicker" name="row[healthy]">
                        <option value="0" {if $row.user_healthy.healthy ==0 } selected {/if} >0</option>
                        <option value="1" {if $row.user_healthy.healthy ==1 } selected {/if}  >1</option>
                        <option value="2" {if $row.user_healthy.healthy ==2 } selected {/if} >2</option>
                        <option value="3" {if $row.user_healthy.healthy ==3 } selected {/if} >3</option>
                    </select>
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Single_status')}:</label><!--接单状态-->
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-single_status" data-rule="required" class="form-control selectpicker" name="row[single_status]">
                        <option value="1" {if $row.user_attribute.single_status ==1 } selected {/if}  >可接单</option>
                        <option value="2" {if $row.user_attribute.single_status ==2 } selected {/if} >不可接单</option>
                    </select>

                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Cash_status')}:</label><!--提现状态-->
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-cash_status" data-rule="required" class="form-control selectpicker" name="row[cash_status]">
                        <option value="1" {if $row.user_attribute.cash_status ==1 } selected {/if} >可以</option>
                        <option value="2" {if $row.user_attribute.cash_status ==2 } selected {/if} >不可以</option>
                    </select>

                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Role')}:</label><!--角色-->
                <div class="col-xs-12 col-sm-8">

                    <select  id="c_role" data-rule="required" class="form-control selectpicker" name="row[role]" {if $row.role =='grouper'} disabled {/if} >
                        <option value="user" {if $row.role =='user' } selected {/if} >组员</option>
                        <option value="grouper"  {if $row.role =='grouper' } selected {/if} >组长</option>
                    </select>

                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Task_status')}:</label><!--任务展示-->
                <div class="col-xs-12 col-sm-8">

                    <select  id="c-task_status" data-rule="required" class="form-control selectpicker" name="row[task_status]">
                        <option value="1" {if $row.user_attribute.task_status ==1 } selected {/if} >展示任务</option>
                        <option value="2"  {if $row.user_attribute.task_status ==2 } selected {/if} >隐藏任务</option>
                    </select>

                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                <label for="c-local" class="control-label col-xs-12 col-sm-2">{:__('Wx_code')}:</label><!--微信二维码-->
                <div class="col-xs-12 col-sm-8">
                    <button id="plupload-local" type="button" class="btn btn-primary plupload" data-preview-id="c-preview" data-input-id="c-local" data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> {:__("Wx_code")}</button>
                </div>
            </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group" >
                <label for="c-local" class="control-label col-xs-12 col-sm-2">图片:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="text" name="row[wx_code]" id="c-local" class="form-control" style="display:none" value="{$row.user_attribute.wx_code}"/>
                    <div id="c-preview">
                        {if !empty($row.user_attribute.wx_code) }
                        <li class="col-xs-3">
                            <img  id="zoom-marker-img-alt-5" name="zoom-marker-img-alt-5" draggable="false" data-url="{$row.user_attribute.wx_code}" class="img-responsive">
                        </li>
                        {/if}
                    </div>
                </div>
            </div>
                </div>
            </div>
            <div class="form-group ">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </form>
    </div>

    <div class="tab-pane fade" id="real">
        <form id="edit-form-1" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" style="margin-top: 20px;">
            <div class="row">
                <input name="real_id" id="real_id" value="{$row.user_real.real_id}" style="display: none">
                <input name="uid" id="uid" value="{$row.uid}" style="display: none">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label for="c-local-1" class="control-label col-xs-12 col-sm-2">售后截图:</label><!--售后截图-->
                        <div class="col-xs-12 col-sm-8">
                            <button id="plupload-local1" type="button" class="btn btn-primary plupload" data-preview-id="c-preview-1" data-input-id="c-local-1"  data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> 售后截图</button>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label for="c-local-1" class="control-label col-xs-12 col-sm-2">图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" name="row[after_safe_img]" id="c-local-1" class="form-control" style="display:none" value="{$row.user_real.after_safe_img}"/>
                            <div id="c-preview-1">
                                {if !empty($row.user_real.after_safe_img) && isset($row.user_real.after_safe_img) }
                                <li class="col-xs-3">
                                    <a href="{$row.user_real.after_safe_img}" data-url="{$row.user_real.after_safe_img}" target="_blank" class="thumbnail">
                                        <img src="{$row.user_real.after_safe_img}" class="img-responsive">
                                    </a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash">
                                    <i class="fa fa-trash"></i>
                                </a>
                                </li>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label for="c-local-2" class="control-label col-xs-12 col-sm-2">淘气值:</label><!--售后截图-->
                        <div class="col-xs-12 col-sm-8">
                            <button id="plupload-local2" type="button"  class="btn btn-primary plupload"  data-multiple="true" data-preview-id="c-preview-2" data-input-id="c-local-2" data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> 淘气值</button>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label for="c-local-2" class="control-label col-xs-12 col-sm-2">图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" name="row[tao_gas_img]" id="c-local-2" class="form-control" style="display:none" value="{$row.user_real.tao_gas_img}"/>
                            <div id="c-preview-2">
                                {if !empty($row.user_real.tao_gas_img) && isset($row.user_real.tao_gas_img)}
                                <li class="col-xs-3">
                                    <a href="{$row.user_real.tao_gas_img}" data-url="{$row.user_real.tao_gas_img}" target="_blank" class="thumbnail">
                                        <img src="{$row.user_real.tao_gas_img}" class="img-responsive">
                                    </a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash">
                                    <i class="fa fa-trash"></i>
                                </a>
                                </li>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label for="c-local-3" class="control-label col-xs-12 col-sm-2">淘花呗:</label><!--淘气值-->
                        <div class="col-xs-12 col-sm-8">
                            <button id="plupload-local-3"  type="button" class="btn btn-primary plupload" data-multiple="true" data-preview-id="c-preview-3" data-input-id="c-local-3" data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> 淘花呗</button>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label for="c-local-3" class="control-label col-xs-12 col-sm-2">图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" name="row[tao_flower_img]" id="c-local-3" class="form-control" style="display:none" value="{$row.user_real.tao_flower_img}"/>
                            <div id="c-preview-3">
                                {if !empty($row.user_real.tao_flower_img) && isset($row.user_real.tao_flower_img)}
                                <li class="col-xs-3">
                                    <a href="{$row.user_real.tao_flower_img}" data-url="{$row.user_real.tao_flower_img}" target="_blank" class="thumbnail">
                                        <img src="{$row.user_real.tao_flower_img}" class="img-responsive">
                                    </a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash">
                                    <i class="fa fa-trash"></i>
                                </a>
                                </li>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label for="c-local-4" class="control-label col-xs-12 col-sm-2">淘体检:</label><!--淘气值-->
                        <div class="col-xs-12 col-sm-8">
                            <button id="plupload-local4" type="button"  class="btn btn-primary plupload" data-preview-id="c-preview-4" data-input-id="c-local-4" data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> 淘体检</button>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label for="c-local-4" class="control-label col-xs-12 col-sm-2">图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" name="row[tao_exam_img]" id="c-local-4" class="form-control" style="display:none" value="{$row.user_real.tao_exam_img}"/>
                            <div id="c-preview-4">
                                {if !empty($row.user_real.tao_exam_img) && isset($row.user_real.tao_exam_img)}
                                <li class="col-xs-3">
                                    <a href="{$row.user_real.tao_exam_img}" data-url="{$row.user_real.tao_exam_img}" target="_blank" class="thumbnail">
                                        <img src="{$row.user_real.tao_exam_img}" class="img-responsive">
                                    </a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash">
                                    <i class="fa fa-trash"></i>
                                </a>
                                </li>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label for="c-local-5" class="control-label col-xs-12 col-sm-2">淘宝贝:</label><!--淘气值-->
                        <div class="col-xs-12 col-sm-8">
                            <button id="plupload-local5" type="button"  class="btn btn-primary plupload" data-preview-id="c-preview-5" data-input-id="c-local-5" data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> 淘宝贝</button>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label for="c-local-5" class="control-label col-xs-12 col-sm-2">图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" name="row[tao_baby_img]" id="c-local-5" class="form-control" style="display:none" value="{$row.user_real.tao_baby_img}"/>
                            <div id="c-preview-5">
                                {if !empty($row.user_real.tao_baby_img) && isset($row.user_real.tao_baby_img)}
                                <li class="col-xs-3">
                                    <a href="{$row.user_real.tao_baby_img}" data-url="{$row.user_real.tao_baby_img}" target="_blank" class="thumbnail">
                                        <img src="{$row.user_real.tao_baby_img}" class="img-responsive">
                                    </a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash">
                                    <i class="fa fa-trash"></i>
                                </a>
                                </li>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label for="c-local-6" class="control-label col-xs-12 col-sm-2">淘评价:</label><!--淘气值-->
                        <div class="col-xs-12 col-sm-8">
                            <button id="plupload-local6" type="button"  class="btn btn-primary plupload" data-preview-id="c-preview-6" data-input-id="c-local-6" data-url="{:url('ajax/upload')}?type=auth"><i class="fa fa-upload"></i> 淘评价</button>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label for="c-local-6" class="control-label col-xs-12 col-sm-2">图片:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" name="row[tao_evaluate_img]" id="c-local-6" class="form-control" style="display:none" value="{$row.user_real.tao_evaluate_img}"/>
                            <div id="c-preview-6">
                                {if !empty($row.user_real.tao_evaluate_img) && isset($row.user_real.tao_evaluate_img)}
                                <li class="col-xs-3">
                                    <a href="{$row.user_real.tao_evaluate_img}" data-url="{$row.user_real.tao_evaluate_img}" target="_blank" class="thumbnail">
                                        <img src="{$row.user_real.tao_evaluate_img}" class="img-responsive">
                                    </a><a href="javascript:;" class="btn btn-danger btn-xs btn-trash">
                                    <i class="fa fa-trash"></i>
                                </a>
                                </li>
                                {/if}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {if   $row.user_real.real_status =='1' }
            <div class="form-group ">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <input type="button" class="btn btn-success btn-embossed disabled" id = "pass" value="通过" >
                    <input type="button" class="btn btn-default btn-embossed"  id="fail"  value="失败">
                </div>
            </div>
            {/if}
        </form>
    </div>

</div>